<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div></div>
    <script>
        // 先去掉问号
       var params=location.search.substr(1)
    //    利用=号把字符分割
       var arr=params.split('=')
    var div=document.querySelector('div')
    div.innerHTML=arr[1]+'欢迎你'
    </script>
</body>
</html>